<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户登录</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link href="/ksp/layui/css/layui.css" rel="stylesheet">
<script type="text/javascript" src="/ksp/jquery/jquery.min.js"></script>

<style type="text/css">
.body {
	background-color: blue;
	background-size: cover;
	width: 100%;
}

.centerdiv {
	position: absolute;
	top: 40%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	background-color: aliceblue;
}
</style>

<script type="text/javascript">
	$(function() {
		//alert("10");
		$("#bok").click(function() {
			var subDta = $("#frmUsrlgn").serializeArray();
			$.ajax({
				url : "/ksp/usr/KSPU01",
				type : "post",
				dataType : "json",
				data : subDta,
				success : function(data) {
					alert(data.msg);
					if ("200" == data.cod) {
						window.location.href = "/ksp/p/usr/tsklst";
					} else {
						window.locations.href = "/ksp/";
					}
				}
			})
		});
	})
</script>

</head>
<body>
	<div class="centerdiv">
		<div>
			<h2 style="text-align: center; padding: 10px;">
				<a href="/ksp/">问题反馈系统</a>
			</h2>
		</div>
		<hr>
		<div style="width: 40em; margin-top: 20px;">
			<form class="layui-form" id="frmUsrlgn"
				style="width: 20em; margin: 0 auto; padding: 30px;">
				<div>
					<label style="">欢迎登录</label>
				</div>
				<div style="margin-top: 10px;">
					<input type="text" class="layui-input" name="USR_OAM" required
						lay-verify="required" placeholder="账号" autocomplete="off"
						value="132">
				</div>
				<div style="margin-top: 5px;">
					<input type="password" class="layui-input" name="PAS_WRD" required
						lay-verify="required" placeholder="密码" autocomplete="off"
						value="111">
				</div>
				<div style="margin-top: 20px;">
					<button type="button" id="bok" class="layui-btn"
						style="width: 100%;">登录</button>
				</div>
				<hr>
				<p>
					<a href="/ksp/p/usr/usrreg">立即注册</a> <a
						href='javascript:alert("请联系管理员")' style="float: right;">忘记密码</a>
				</p>
			</form>
		</div>

	</div>
</body>
</html>